How can I stop water from pooling right here?

We are going to replace the wood, but how I can prevent water from pooling here in the future?

We are going to replace the wood, but how I can prevent water from pooling here in the future?